Skip to content

chore: unify cross-platform build scripts and configure Windows AppX#1

Open
khaira777 wants to merge 2 commits into
FreeOpenSourcePOS:mainfrom
khaira777:main
Open

chore: unify cross-platform build scripts and configure Windows AppX#1
khaira777 wants to merge 2 commits into
FreeOpenSourcePOS:mainfrom
khaira777:main

Conversation

@khaira777

@khaira777 khaira777 commented Jun 9, 2026

Copy link
Copy Markdown

Overview

This PR introduces several quality-of-life improvements to the build pipeline to ensure local development works seamlessly across all operating systems (specifically fixing Windows PowerShell compatibility) and prepares the app for Windows packaging.

Key Changes

  • Windows Compatibility (cross-env): Added npx cross-env to the build:frontend script. Previously, Windows PowerShell would throw an error trying to parse inline variables like NEXT_BUILD_MODE=desktop, preventing Windows devs from building the frontend.
  • Zombie Process Cleanup (kill-port): Added a clean script that runs before dev to ensure ports 3001 and 3002 are cleared. This prevents the frequent EADDRINUSE crash when restarting the dev server.
  • Submodule Guardrails (predev): Added a git submodule update --init step before the dev server boots to prevent developers from accidentally running stale frontend code against new backend changes.
  • Production Polish (appx): Swapped the boilerplate YOUR_PUBLISHER_DISPLAY_NAME placeholders in package.json with the actual "Codify Apps Private Limited" details to prevent future Microsoft Store certification failures.

Testing

Successfully tested on Windows 11 using PowerShell. The dev server boots cleanly, kills old ports, and compiles Next.js without environment variable errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant